import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store' //引入store

// 引入http文件
import {post,get} from './assets/api/http'
Vue.prototype.$post = post;
Vue.prototype.$get = get;

// 引入ui组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// 引入less
import less from 'less'
Vue.use(less)

// 引入echarts
import * as echarts from 'echarts'
// 引入折线图
import 'echarts/lib/chart/line';
// 引入提示框和标题组件
import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/title';
Vue.prototype.$echarts = echarts;

// 使用Vue.use()方法就会调用工具方法中的install方法
import htmlToPdf from './assets/tool/htmlToPdf'
Vue.use(htmlToPdf)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
